/*
 * @Author: your name
 * @Date: 2022-03-30 09:38:07
 * @LastEditTime: 2022-04-07 12:32:58
 * @LastEditors: chenyuanming
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \erp-management-system1\src\router\afterSaleRouter.js
 */
import { Suspense, lazy } from 'react';
//路由懒加载的封装
const lazyComponent = (path) => {
    const LazyComp = lazy(() => import(`./../${path}`))
    return <Suspense fallback={<div>Loading...</div>}>
        <LazyComp />
    </Suspense>
}

const afterSaleRouter = [
    {
        path: '/afterSale',
        title: '售后管理',
        children: [
            {
                path: '/afterSale/afterSaleList',
                title: '售后列表',
                element: lazyComponent('views/AfterSale/AfterSaleList.jsx')
            },
            {
                path: '/afterSale/newaftersalesBox',
                title: '新增售后',
                element: lazyComponent('views/AfterSale/jsx/NewaftersalesBox.jsx')
            },
        ]
    }
]
export default afterSaleRouter